$OpenBSD: patch-client_dhcpc_c,v 1.1 2013/05/10 09:56:45 sthen Exp $
--- client/dhcpc.c.orig	Thu Sep 10 00:54:19 1998
+++ client/dhcpc.c	Fri May 10 10:49:49 2013
@@ -1015,8 +1015,8 @@ requesting()
 	    *param_list = tmpparam;
 	    param_list->lease_origin = init_epoch;
 	    param_list->next = NULL;
-	    syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)",
-		   inet_ntoa(param_list->yiaddr), param_list->lease_duration);
+	    syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %ld secs)",
+		   inet_ntoa(param_list->yiaddr), (long)param_list->lease_duration);
 	    arp_reply(&param_list->yiaddr, &arpif);
 	    return(BOUND);
 	  }
@@ -1265,8 +1265,8 @@ renewing()
 	  param_list->next = NULL;
 	  sigsetmask(oldsigmask); /* end critical */
 
-	  syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)",
-		 inet_ntoa(param_list->yiaddr), param_list->lease_duration);
+	  syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %ld secs)",
+		 inet_ntoa(param_list->yiaddr), (long)param_list->lease_duration);
 	  arp_reply(&param_list->yiaddr, &arpif);
 	  return(BOUND);
 	}
@@ -1404,8 +1404,8 @@ rebinding()
 	  param_list->next = NULL;
 	  sigsetmask(oldsigmask); /* end critical */
 
-	  syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)",
-		 inet_ntoa(param_list->yiaddr), param_list->lease_duration);
+	  syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %ld secs)",
+		 inet_ntoa(param_list->yiaddr), (long)param_list->lease_duration);
 	  arp_reply(&param_list->yiaddr, &arpif);
 	  return(BOUND);
 	}
@@ -1684,8 +1684,8 @@ reboot_verify()
 	    param_list->next = NULL;
 	    sigsetmask(oldsigmask); /* end critical */
 
-	    syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %d secs)",
-		   inet_ntoa(param_list->yiaddr), param_list->lease_duration);
+	    syslog(LOG_INFO, "Got DHCPACK (IP = %s, duration = %ld secs)",
+		   inet_ntoa(param_list->yiaddr), (long)param_list->lease_duration);
 	    arp_reply(&param_list->yiaddr, &arpif);
 	    return(BOUND);
 	  }
